//
//  AppDelegate.h
//  AppMua5
//
//  Created by duong nguyen on 9/12/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ProductViewController.h"
#import "CategoryViewController.h"
#import "ViewApi.h"

@interface AppDelegate : UIResponder <UIApplicationDelegate>{
    ViewApi *viewApi;
}

@property (strong, nonatomic) UIWindow *window;

@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
@property (nonatomic,retain) UITabBarController *tabBarController;

@property (nonatomic,retain) ViewApi *viewApi;
- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;
- (void) setupApplicationViews;

@end
